package manager.com.ithei.edu.info.manager.controller;

import manager.com.ithei.edu.info.manager.domain.Teacher;
import manager.com.ithei.edu.info.manager.service.TeacherService;
import manager.com.ithei.edu.info.manager.util.AgeUtil;

import java.text.ParseException;
import java.util.Scanner;

public class YouHuaTeacherController extends FatherTeacherController {
    private Scanner sc = new Scanner(System.in);
    private TeacherService teacherService = new TeacherService();

    //用户录入数据
    @Override
    Teacher inputStudentInfo(String id) throws ParseException {
        System.out.println("请输入姓名:");
        String name=sc.next();
        System.out.println("请输入生日:");
        String birthday=sc.next();
        System.out.println("请输入地址:");
        String add=sc.next();
        Teacher teacher = new Teacher(id,name, AgeUtil.getAge(birthday),birthday,add);
        return teacher;
    }

}

